[ElementTiming] Add intrinsic size This CL adds naturalWidth and naturalHeight members to PerformanceElementTiming to allow developers to compute a size that aligns more with the importance of the image with the help of these attributes and intersectionRect. This CL also adds tests for CSS scaling and rotation. Bug: 879270 Change-Id: I9dbbe802dd430c2dd0fd9a476608c0c744a98095 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1545169 Commit-Queue: Nicolás Peña Moreno <npm@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/master@{#646368} 
diff --git a/element-timing/image-carousel.html b/element-timing/image-carousel.html index 0bd99ab..f914f74 100644 --- a/element-timing/image-carousel.html +++ b/element-timing/image-carousel.html 
@@ -39,11 +39,13 @@  if (entry_count % 2 == 0) {  checkElement(entry, pathname0, 'image0', beforeRenderTimes[entry_count]);  checkRect(entry, [0, 200, 0, 200]); + checkNaturalSize(entry, 200, 200);  entry_count_per_element[0]++;  }  else {  checkElement(entry, pathname1, 'image1', beforeRenderTimes[entry_count]);  checkRect(entry, [0, 100, 0, 100]); + checkNaturalSize(entry, 100, 100);  entry_count_per_element[1]++;  }  entry_count++;